home *** CD-ROM | disk | FTP | other *** search
-
-
-
- NSLOOKUP User Commands NSLOOKUP
-
-
-
- NNAAMMEE
- nslookup - query name servers interactively
-
- SSYYNNOOPPSSIISS
- nnssllooookkuupp [ -_o_p_t_i_o_n ... ] [ _h_o_s_t-_t_o-_f_i_n_d | - [ _s_e_r_v_e_r ]]
-
- DDEESSCCRRIIPPTTIIOONN
- _N_s_l_o_o_k_u_p is a program to query DARPA Internet domain name
- servers. Nslookup has two modes: interactive and non-
- interactive. Interactive mode allows the user to query the
- name server for information about various hosts and domains
- or print a list of hosts in the domain. Non-interactive mode
- is used to print just the name and Internet address of a
- host or domain.
-
-
- AARRGGUUMMEENNTTSS
- Interactive mode is entered in the following cases:
-
- a) when no arguments are given (the default name server
- will be used),
-
- b) when the first argument is a hyphen (-) and the second
- argument is the hostname or Internet address of a name
- server.
-
- Non-interactive mode is used when the name of the host to be
- looked up is given as the first argument. The optional
- second argument specifies the hostname or Internet address
- of a name server.
-
- The options listed under the ``set'' command below can be
- specified on the command line if they precede the arguments
- and are prefixed with a hyphen. For example, to change the
- default query type to host information, and the default
- timeout to 10 seconds, type:
-
- nslookup -query=hinfo -timeout=10
-
-
- IINNTTEERRAACCTTIIVVEE CCOOMMMMAANNDDSS
- Commands may be interrupted at any time by typing a
- control-C. To exit, type a control-D (EOF) or type exit.
- The command line length must be less than 80 characters.
- NN..BB.. an unrecognized command will be interpreted as a host
- name.
-
-
- _h_o_s_t [_s_e_r_v_e_r]
- Look up information for _h_o_s_t using the current default
- server or using _s_e_r_v_e_r if specified.
-
-
-
-
- Sprite v1.0 August 17, 1988 1
-
-
-
-
-
-
- NSLOOKUP User Commands NSLOOKUP
-
-
-
- sseerrvveerr _d_o_m_a_i_n
- llsseerrvveerr _d_o_m_a_i_n
- Change the default server to _d_o_m_a_i_n. LLsseerrvveerr uses the
- initial server to look up information about _d_o_m_a_i_n
- while sseerrvveerr uses the current default server. If an
- authoritative answer can't be found, the names of
- servers that might have the answer are returned.
-
-
- rroooott Changes the default server to the server for the root
- of the domain name space. Currently, the host sri-
- nic.arpa is used. (This command is a synonym for the
- llsseerrvveerr ssrrii--nniicc..aarrppaa.) The name of the root server can
- be changed with the sseett rroooott command.
-
-
- ffiinnggeerr [_n_a_m_e] [>> _f_i_l_e_n_a_m_e]
- ffiinnggeerr [_n_a_m_e] [>>>> _f_i_l_e_n_a_m_e]
- Connects with the finger server on the current host.
- The current host is defined when a previous lookup for
- a host was successful and returned address information
- (see the sseett qquueerryyttyyppee==AA command). _N_a_m_e is optional. >>
- and >>>> can be used to redirect output in the usual
- manner.
-
-
- llss _d_o_m_a_i_n [>> _f_i_l_e_n_a_m_e]
- llss _d_o_m_a_i_n [>>>> _f_i_l_e_n_a_m_e]
- llss --aa _d_o_m_a_i_n [>> _f_i_l_e_n_a_m_e]
- llss --aa _d_o_m_a_i_n [>>>> _f_i_l_e_n_a_m_e]
- llss --hh _d_o_m_a_i_n [>> _f_i_l_e_n_a_m_e]
- llss --hh _d_o_m_a_i_n [>>>> _f_i_l_e_n_a_m_e]
- llss --dd _d_o_m_a_i_n [>> _f_i_l_e_n_a_m_e]
- llss --dd _d_o_m_a_i_n [>>>> _f_i_l_e_n_a_m_e]
- List the information available for _d_o_m_a_i_n, optionally
- creating or appending to _f_i_l_e_n_a_m_e. The default output
- contains host names and their Internet addresses. The
- --aa option lists aliases of hosts in the domain. The --hh
- option lists CPU and operating system information for
- the domain. The --dd option lists all contents of a zone
- transfer. When output is directed to a file, hash
- marks are printed for every 50 records received from
- the server.
-
-
- vviieeww _f_i_l_e_n_a_m_e
- Sorts and lists the output of previous llss command(s)
- with _m_o_r_e(1).
-
-
- hheellpp
-
-
-
-
- Sprite v1.0 August 17, 1988 2
-
-
-
-
-
-
- NSLOOKUP User Commands NSLOOKUP
-
-
-
- ?? Prints a brief summary of commands.
-
-
- eexxiitt Exits the program.
-
-
- sseett _k_e_y_w_o_r_d[=_v_a_l_u_e]
- This command is used to change state information that
- affects the lookups. Valid keywords are:
-
- aallll Prints the current values of the various options
- to sseett. Information about the current default
- server and host is also printed.
-
- [[nnoo]]ddeebbuugg
- Turn debugging mode on. A lot more information is
- printed about the packet sent to the server and
- the resulting answer.
- (Default = nodebug, abbreviation = [no]deb)
-
- [[nnoo]]dd22
- Turn exhaustive debugging mode on. Essentially
- all fields of every packet are printed.
- (Default = nod2)
-
- [[nnoo]]ddeeffnnaammee
- Append the default domain name to every lookup.
- (Default = defname, abbreviation = [no]def)
-
- [[nnoo]]sseeaarrcchh
- With defname, search for each name in parent
- domains of the current domain.
- (Default = search)
-
- ddoommaaiinn==_n_a_m_e
- Change the default domain name to _n_a_m_e. The
- default domain name is appended to all lookup
- requests if the ddeeffnnaammee option has been set. The
- search list is set to parents of the domain with
- at least two components in their names.
- (Default = value in hostname or /etc/resolv.conf,
- abbreviation = do)
-
- qquueerryyttyyppee==_v_a_l_u_e
-
- ttyyppee==_v_a_l_u_e
- Change the type of information returned from a
- query to one of:
-
- A the host's Internet address (the
- default).
-
-
-
-
- Sprite v1.0 August 17, 1988 3
-
-
-
-
-
-
- NSLOOKUP User Commands NSLOOKUP
-
-
-
- CNAME the canonical name for an alias.
-
- HINFO the host CPU and operating system type.
-
- MD the mail destination.
-
- MX the mail exchanger.
-
- MG the mail group member.
-
- MINFO the mailbox or mail list information.
-
- MR the mail rename domain name.
-
- NS nameserver for the named zone.
- Other types specified in the RFC-1035 document are
- valid but aren't very useful.
- (Abbreviation = q)
-
- [[nnoo]]rreeccuurrssee
- Tell the name server to query other servers if it
- does not have the information.
- (Default = recurse, abbreviation = [no]rec)
-
- rreettrryy==_n_u_m_b_e_r
- Set the number of retries to _n_u_m_b_e_r. When a reply
- to a request is not received within a certain
- amount of time (changed with sseett ttiimmeeoouutt), the
- request is resent. The retry value controls how
- many times a request is resent before giving up.
- (Default = 2, abbreviation = ret)
-
- rroooott==_h_o_s_t
- Change the name of the root server to _h_o_s_t. This
- affects the rroooott command.
- (Default = sri-nic.arpa, abbreviation = ro)
-
- ttiimmeeoouutt==_n_u_m_b_e_r
- Change the time-out interval for waiting for a
- reply to _n_u_m_b_e_r seconds.
- (Default = 10 seconds, abbreviation = t)
-
- [[nnoo]]vvcc
- Always use a virtual circuit when sending requests
- to the server.
- (Default = novc, abbreviation = [no]v)
-
- DDIIAAGGNNOOSSTTIICCSS
- If the lookup request was not successful, an error message
- is printed. Possible errors are:
-
- Time-out
-
-
-
- Sprite v1.0 August 17, 1988 4
-
-
-
-
-
-
- NSLOOKUP User Commands NSLOOKUP
-
-
-
- The server did not respond to a request after a certain
- amount of time (changed with sseett ttiimmeeoouutt==_v_a_l_u_e) and a
- certain number of retries (changed with sseett
- rreettrryy==_v_a_l_u_e).
-
- No information
- Depending on the query type set with the sseett qquueerryyttyyppee
- command, no information about the host was available,
- though the host name is valid.
-
- Non-existent domain
- The host or domain name does not exist.
-
- Connection refused
- Network is unreachable
- The connection to the name or finger server could not
- be made at the current time. This error commonly
- occurs with ffiinnggeerr requests.
-
- Server failure
- The name server found an internal inconsistency in its
- database and could not return a valid answer.
-
- Refused
- The name server refused to service the request.
-
-
- The following error should not occur and it indicates a bug
- in the program.
-
- Format error
- The name server found that the request packet was not
- in the proper format.
-
-
- FFIILLEESS
- /etc/resolv.conf initial domain name and name server
- addresses.
- /usr/local/nslookup.help summary of commands.
-
- SSEEEE AALLSSOO
- resolver(3), resolver(5), named(8),
- RFC-1034 ``Domain Names - Concepts and Facilities''
- RFC-1035 ``Domain Names - Implementation and Specifica-
- tion''
-
- AAUUTTHHOORR
- Andrew Cherenson
-
-
-
-
-
-
-
- Sprite v1.0 August 17, 1988 5
-
-
-
-